<%@page import="br.com.fiap.vo.UsuarioVO"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%
    
    UsuarioVO usuarioVO = (UsuarioVO)request.getSession().getAttribute("usuario");
    if(usuarioVO == null)
        response.sendRedirect(request.getContextPath()+"/index.jsp?msg=Acesso negado!");
    
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Cadastro Aluno</title>
        <link href="./css/avaliacao.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript">
            function goBack(){
                window.history.back()
            }
            function confirmar(){
                var nome = document.getElementById("nome").value;
                                                
                if(nome.trim() == ""){
                    alert("Informe Nome! ");
                    document.getElementById("nome").focus();
                    return false;
                }   
                
                document.formCadAluno.submit();

            }
        </script>
    </head>
    <body>
       <form name="formCadAluno"  method="post" action="administrador">
            <input type="hidden" id="acao" name="acao" value="CadastroAluno"/>
            <table class="tabela_input">
                <tr>
                    <td>Nome: </td>
                    <td><input type="text" id="nome"  name="nome" value=""/></td>
                </tr>
                <tr>
                    <td>SobreNome: </td>
                    <td><input type="text" id="sobreNome" name="sobreNome" value=""/></td>
                </tr>
                 <tr>
                    <td>Endereço: </td>
                    <td><input type="text" id="endereco"  name="endereco" value="" /></td>
                </tr>
                <tr>
                    <td>Nº: </td>
                    <td><input type="text" id="numero"  name="numero" value="" /></td>
                </tr>
                <tr>
                    <td>Complemento: </td>
                    <td><input type="text" id="complemento"  name="complemento" value="" /></td>
                </tr>
                <tr>
                    <td>CEP: </td>
                    <td><input type="text" id="cep"  name="cep" value="" /></td>
                </tr>
                <tr>
                    <td>Bairro: </td>
                    <td><input type="text" id="bairro"  name="bairro" value="" /></td>
                </tr>
                <tr>
                    <td>Cidade: </td>
                    <td><input type="text" id="cidade"  name="cidade" value="" /></td>
                </tr>
                <tr>
                    <td>UF: </td>
                    <td><input type="text" id="uf"  name="uf" value="" /></td>
                </tr>
                <tr>
                    <td>Telefone: </td>
                    <td><input type="text" id="telefone" maxlength="10" name="telefone" value="" /></td>
                </tr>
                <tr>
                    <td>Celular: </td>
                    <td><input type="text" id="celular" maxlength="10"  name="celular" value="" /></td>
                </tr>
                <tr>
                    <td>RG: </td>
                    <td><input type="text" id="rg" maxlength="9" name="rg" value="" /></td>
                </tr>
                <tr>
                    <td>CPF: </td>
                    <td><input type="text" id="cpf" maxlength="11"  name="cpf" value="" /></td>
                </tr>
            </table>
            <table  align="center">
                <tr>
                    <td><a href="#" onclick="javaScript:goBack();">Voltar</a></td>
                    <td><a href="#" onclick="javaScript:confirmar();">Confirmar</a></td>
                </tr>            
            </table>  
        </form>
    </body>
</html>
